package com.kaiyiweitong.tongxing.activity.my.my_order;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.GridLayout;
import android.widget.ImageView;

import com.kaiyiweitong.tongxing.R;
import com.kaiyiweitong.tongxing.adapter.MyBillAdapter;
import com.kaiyiweitong.tongxing.base.BaseActivity;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by Administrator on 2017/12/18 0018.
 */

public class MyBillActivity extends BaseActivity {
    @Bind(R.id.no_data)
    ImageView mNoData;
    @Bind(R.id.rv_my_bill)
    RecyclerView mRvMyBill;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my_bill);
        ButterKnife.bind(this);


        mRvMyBill.setLayoutManager(new GridLayoutManager(this, 1, GridLayout.VERTICAL, false));
        MyBillAdapter myBillAdapter = new MyBillAdapter(this);
        mRvMyBill.setAdapter(myBillAdapter);
    }

    @OnClick(R.id.add_bill)
    public void onViewClicked() {
        Intent intent = new Intent(this, NewBillActivity.class);

        startActivity(intent);
    }
}
